package com.dfrz.ch09.task;

public class Circle {

	private double r;

	public Circle() {
		r = 5;
	}

	public Circle(double r) {
		this.r = r;
	}

	public double area() {
		return Math.PI * r * r;
	}

	public double girth() {
		return 2 * Math.PI * r;
	}

	public double getR() {
		return r;
	}

	public void setR(double r) {
		this.r = r;
	}

}

